import Vue from 'vue'
import App from './App'
import Hack from './utils/Hack'
import store from "./store/store";
// 全局导入所有组件     main.js文件

// 将store挂载
Vue.prototype.$store = store
Vue.use(Hack)

import toast from '../static/vant/toast/toast'
import dialog from '../static/vant/dialog/dialog'
Vue.prototype.$toast = toast
Vue.prototype.$dialog = dialog

Vue.config.productionTip = false
App.mpType = 'app'

import fly from './utils/api-manager'
Vue.prototype.$fly = fly

import MpvueRouterPatch from 'mpvue-router-patch'
Vue.use(MpvueRouterPatch)

//全局引入api配置
import api from './utils/project-api'
Vue.prototype.$api = api;

import wxUtil from './utils/wxUtil'
Vue.prototype.$wxUtil = wxUtil;

const app = new Vue(App)
app.$mount()
